You are here:
Symbol Reference >
Dew Namespace
>
Dew.Math Namespace
>
Classes
>
Matrix Structure
>
Matrix Methods
>
Copy Method
>
Matrix.Copy Method ([In] TMtxVec, [In] TMtxFloatPrecision)
Dew Math for .NET
Example
Matrix.Copy Method ([In] TMtxVec, [In] TMtxFloatPrecision)
using
Dew.Math
;
using
Dew.Math.Units
;
namespace
Dew.Examples() {
void
Example() {
TVec
a,b,c; MtxVec.CreateIt(
out
a,
out
b,
out
c);
try
{ a.SetIt(
true
,
new
double
[] {1,2,3,4});
// a = [1,2,3,4] i.e 1+2i ; 3+4i
b.Copy(a, mvSingle);
// convert to single precision
}
finally
{ MtxVec.FreeIt(
ref
a,
ref
b,
ref
c); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
Contents
|
Index
|
Home